/*
 * Explosion.h
 */

#ifndef EXPLOSION_H_
#define EXPLOSION_H_

#include "Model3D.h"
#include "Level.h"

#define particle_num 400

struct Particle{
float pos_x;
float pos_y;
float pos_z;
float size; // of particle
float red;
float green;
float blue;
float alpha;
};

class Explosion : public Model3D{
public:
	Explosion(Level *level);
	~Explosion();
	void initializeGL(GLuint *texture);
	bool renderGL2();
	void update(float miliseconds);
	void setPosition(float x, float y, float z, int size);
private:
	Particle *particle;
	Level *level;
	float explosion_diameter;
};

#endif /* EXPLOSION_H_ */
